package com.course.server.dto;

import com.course.server.common.Add;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author: Durian
 * @date: 2021/5/30 13:05
 */
@Data
public class UserDto {

    private String id;

    @NotBlank(message = "登录名不能为空")
    private String loginName;

    private String name;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(groups = {Add.class}, message = "验证码不能为空")
    private String imageCode;

    private String imageCodeKey;

    private String token;

    private List<String> roleIds;
}
